package com.yeyv.net.Web.Control;

import com.yeyv.net.UsefulEntity.Constant;
import com.yeyv.net.UsefulEntity.Resp;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 展示类
 *
 * <p>不需要Security验证的在Anonymous中</p>
 * <p>/anon/** 不进行验证</p>
 * <p>/auth/** 进行验证</p>
 * <p>/user/** 部分进行验证</p>
 *
 * @type Controller
 * @author 夜雨
 * @do none
 */
@RestController
//@RequestMapping("/useless")
public class UselessController {

    /**
     * 不需要TOKEN
     * @return
     */
    @GetMapping("/anon/hello")
    public Resp<?> AnonHello(){
        return Constant.ResponseSuccess();
    }

    /**
     * 需要TOKEN
     * @return
     */
    @GetMapping("/auth/hello")
    public Resp<?> AuthHello(){
        return Constant.ResponseSuccess();
    }
}